package com.holly.unit.deform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.holly.unit.deform.entity.DesignFormAuth;
import com.holly.unit.deform.pojo.ext.ExtActProcessNodeAuth;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 类描述: 表单设计器权限表，字段级权限
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/7 8:33
 */
public interface DeformAuthMapper extends BaseMapper<DesignFormAuth> {

    @Select("SELECT * FROM EXT_ACT_PROCESS_NODE_AUTH AS EAPNA WHERE EAPNA.FORM_TYPE = '2' AND EAPNA.PROCESS_NODE_CODE = #{taskId} AND EAPNA.FORM_BIZ_CODE = #{desformCode}")
    List<ExtActProcessNodeAuth> selectByTaskId(@Param("desformCode") String desformCode, @Param("taskId") String taskId);
}
